/* 动画特效 */
.fade-move,
.fade-enter-active,
.fade-leave-active {
  transition: all 0.5s cubic-bezier(0.55, 0, 0.1, 1);
}
.clear-transition {
  transition: unset !important;
}
.fade-enter {
  opacity: 0;
}
.fade-leave-to {
  opacity: 0;
  transform: translateX(-10px);
}
.fade-leave-active {
  position: absolute;
}

#app {
  position: relative;
  padding: 5px;
  width: 380px;
  box-sizing: border-box;
  background-color: rebeccapurple;
}

.container {
  width: 350px;
  padding: 10px;
  background: #f2f6fc;
  font-family: "微软雅黑";
  // 头部
  header {
    position: relative;
    border-bottom: 1px solid #e4e7ed;
    box-sizing: border-box;
    .header-title {
      width: 350px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      font-size: 18px;
      padding: 5px 10px;
      box-sizing: border-box;
      color: #2a3a4a;
      line-height: 30px;
      font-weight: 500;
      // border-bottom: 1px solid #e4e7ed;
      user-select: none;
    }
    .title-input {
      .el-input__wrapper {
        padding: 5px 11px;
        background-color: #f2f6fc;
      }
      .el-input__inner {
        background-color: #f2f6fc !important;
        font-size: 18px !important;
        color: #2a3a4a !important;
        font-weight: 500 !important;
      }
    }
  }
  // 中间
  .box-card {
    margin-top: 13px;
    .el-card__header {
      padding: 0 15px 0 12px !important;
    }
    .card-header {
      height: 41px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .card-time {
        display: flex;
        align-items: center;
        font-size: 15px;
        font-weight: 500;
        cursor: pointer;
        user-select: none;
        flex: 1;
        span {
          flex: 1;
        }
      }
      .icon-mdatepicker {
        margin-right: 5px;
      }
      .el-button i {
        font-size: 16px;
        font-weight: 500;
      }
    }
    .el-card__body {
      transition: max-height 0.2s;
      padding: 10px 20px !important;
      min-height: 200px !important;
      max-height: 236px !important;
      overflow-y: auto !important;
      scrollbar-width: none !important;
      &::-webkit-scrollbar {
        width: 2px;
        background-color: rgb(212, 207, 207);
      }
    }
    .el-row {
      height: 35px;
      display: flex;
      align-items: center;
      border-radius: 4px;
      padding: 0 10px;
      margin-bottom: 5px;
      border-bottom: 1px solid #e4e7ed;
      .el-col {
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        padding-right: 20px;
        &:hover .show-remove-icon {
          display: block;
        }
      }
      .el-icon-delete {
        display: none;
        position: absolute;
        right: 0;
        cursor: pointer;
        font-size: 14px;
        color: #ccc;
      }
      .checkbox-text {
        width: 100%;
        color: #606266;
        font-size: 14px;
        font-weight: 500;
        line-height: 22px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        cursor: move;
        user-select: none;
      }
      .select {
        text-decoration: line-through;
        color: #ccc;
      }
      .checkbox {
        width: auto !important;
        margin-right: 10px !important;
      }
      .el-checkbox {
        width: 100%;
      }
      .el-input__wrapper {
        padding: 1px 0;
      }
      .el-input__inner {
        border: 0 !important;
        color: #606266 !important;
        font-size: 14px !important;
        font-weight: 500 !important;
      }
    }
  }
  // 尾部
  footer {
    margin-top: 10px;
    display: flex;
    font-size: 15px;
    justify-content: space-between;
    color: #afacac;
    .el-button {
      padding: 8px 12px;
      span {
        display: flex;
        align-items: center;
      }
    }
    .reward:hover .icon-dashang1 {
      -webkit-transform: rotateY(360deg);
      transform: rotateY(360deg);
      -webkit-transition: -webkit-transform 0.5s;
      transition: transform 0.5s;
    }
    .clear:hover .icon-qingkong1 {
      -webkit-transform: rotate(360deg);
      transform: rotate(360deg);
      -webkit-transition: -webkit-transform 0.5s;
      transition: transform 0.5s;
    }
  }
  // 图标
  .el-button {
    span {
      i {
        margin-right: 5px;
      }
    }
  }
  .el-input__wrapper {
    box-shadow: none;
    &:hover {
      box-shadow: none;
    }
  }
}

.todo-list {
  border-radius: 6px;
  background: #fff;
  padding: 10px;
  height: 300px;
  overflow: auto;
}

.card-add-icon {
  font-size: 15px;
  font-weight: 500;
}

.icon-github {
  font-size: 16px;
}

.icon-dashang1 {
  font-size: 14px;
}

.icon-weixin1 {
  font-size: 18px;
}

.icon-qingkong1 {
  font-size: 13px;
}

.el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
  border-color: #4ea30a !important;
  background-color: #4ea30a !important;
}

.el-checkbox__input.is-checked + .el-checkbox__label {
  color: #4ea30a !important;
}

.el-checkbox__inner:hover {
  border-color: #4ea30a !important;
}

.el-checkbox__input.is-focus .el-checkbox__inner {
  border-color: #4ea30a !important;
}

.el-dialog__body {
  padding: 10px !important;
}

// 蒙层
.el-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  .el-dialog__header {
    display: none;
  }
  .el-overlay-dialog {
    position: absolute;
    width: 100%;
    height: 100%;
  }
  .el-dialog {
    margin: auto;
    left: 0;
    right: 0;
    top: 50%;
    border-radius: 10px;
    transform: translateY(-50%);
  }
  .el-radio-group {
    width: 100%;
  }
  .el-radio-button {
    width: 50%;
    span {
      width: 100%;
    }
  }
}
